<?php

class templateAdmin extends Admin {

    public $model_name = "admin/template";
    public function index(){
        $this->registerVar('templates', $this->model->listTemplates());
        $this->display($this->model_name ."/index");
    }
    
    public function mini(){
        $template = array_shift($this->vars);
        //die(URL ."?template=$template&url=loja/");
        SRedirect(URL ."?template=$template&url=blog/");
    }

}
?>